package door;

/**
 * 小偷测试类
 * @Author lzp
 * @Date 2024-03-14
 */
public class Test {
    public static void main(String[] args) {

        System.out.println("      ");
        System.out.println("偷防盗门");
        FangDaoDoor fangDaoDoor = new FangDaoDoor();
        Thief thief = new Thief();
        thief.tou(fangDaoDoor);

        System.out.println("      ");
        System.out.println("偷铁门");
        TieDoor tieDoor = new TieDoor();
        thief.tou(tieDoor);

        System.out.println("      ");
        System.out.println("偷木门");
        MuDoor muDoor = new MuDoor();
        thief.tou(muDoor);
    }
}
